package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Hayson
 * @since 2021/7/5 23:44
 */
@Data
@Accessors(chain = true)
@TableName(value = "c2c_order")
public class C2cOrder {
    @TableId(value = "auto_id", type = IdType.AUTO)
    private Long autoId;

    @TableField(value = "id")
    private String id;

    @TableField(value = "m_id")
    private Long mId;

    @TableField(value = "publish_order_id")
    private String publishOrderId;

    @TableField(value = "amount")
    private Integer amount;

    @TableField(value = "coupon_status")
    private Integer couponStatus;

    @TableField(value = "coupon_price")
    private BigDecimal couponPrice;

    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    @TableField(value = "return_price")
    private BigDecimal returnPrice;

    @TableField(value = "product_price")
    private BigDecimal productPrice;

    @TableField(value = "pay_price")
    private BigDecimal payPrice;

    @TableField(value = "address")
    private String address;

    @TableField(value = "address_detail")
    private String addressDetail;

    @TableField(value = "address_distance")
    private BigDecimal addressDistance;

    @TableField(value = "contact_number")
    private String contactNumber;

    @TableField(value = "contact_name")
    private String contactName;

    @TableField(value = "remarks")
    private String remarks;

    @TableField(value = "pay_status")
    private Integer payStatus;

    @TableField(value = "pay_time")
    private LocalDateTime payTime;

    @TableField(value = "transaction_id")
    private String transactionId;

    @TableField(value = "pre_pay_id")
    private String prePayId;

    @TableField(value = "pay_method")
    private Integer payMethod;
    /**
     * 0未接单 1已接单 2进行中 3已完成 4订单取消 5中场取消
     */
    @TableField(value = "order_status")
    private Integer orderStatus;

    @TableField(value = "refund_status")
    private Integer refundStatus;

    @TableField(value = "comment_status")
    private Integer commentStatus;

    @TableField(value = "begin_time")
    private LocalDateTime beginTime;

    @TableField(value = "end_time")
    private LocalDateTime endTime;

    @TableField(value = "add_time")
    private LocalDateTime addTime;
}